package java8_23;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestAnimal {
    public static void main(String[] args) {
        Dog d=new Dog();
        d.name="大黄";
        Ciwei c=new Ciwei();
        c.name="小五花";
        KindMan k=new KindMan();
        k.name="吕洞宾";

        d.bite(c);
        System.out.println(">>>>>>>>>>>>>>>>>>000");
        d.bite(k);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>");
        Dog d2=new Dog("大狗警长");
        ///!!!!!!!!!!!!!!!!!!!!
        d.bite(d2);
        d2.bite(d);
    }
}
